#include"statement.h"

int factorial_1(int x)
{
	if (x == 1 || x == 0)
	{
		return 1;
	}
	else
	{
		return x * factorial_1(x - 1);
	}
}

int factorial_2(int x)
{
	int i = 0;
	int fa = 1;
	if (x == 0 || x == 1)
	{
		return 1;
	}
	for (i = x; i > 0; i--)
	{
		fa = fa * i;
	}
	return fa;
}